<template>
  <div class="wrapper">
    <div @click="intoDetail">跳转详情</div>
  </div>
</template>

<script>
import axios from 'axios';

export default {
  data(){
    return {
      searchContent: '',
      ostatus: '3', // 2：待处理 3：进行中
      orderListData: [], // 
      statusArray: { '5': '待完善患者信息',
                        '8': '待患者签署',
                        '10': '待接诊',
                        '20': '已接诊',
                        '30': '已退诊',
    								    '40': '已完成',
    								    '50': '已取消'}
    }
  },
  methods:{
    // 请求列表数据
    getVideoListData() {
      var aoData = [{name: "sEcho", value: 1}, 
                  {name: "iDisplayStart", value: 0}, 
                  {name: "iDisplayLength", value: 5}];
      aoData.push( { "name": "searchContent", "value": this.searchContent} );
      aoData.push( { "name": "ostatus", "value": this.ostatus} );  

      // 发送网络请求
      this.postRequest(this.$urls.GAINVIDEOORDERDATAS, aoData).then(resp=> {
          console.log(resp);
          this.orderListData = resp.aaData;
      });
    },
    // 跳转详情页面
    intoDetail: function(row, event, column) {
      console.log("路由跳转")
      this.$router.push({"path": "/orders/video/111"});
    },
    payStatusFormat: function(row, column) {
      // 支付状态格式化
      return row.payStatus === 4 ? '未支付' : '已支付';
    },
    statusFormat: function(row, column) {
      // 会诊状态
      return this.statusArray[row.status];
    },
  },
  created(){
   
    // this.getVideoListData();
  },
}
</script>
<style lang="less" scoped>
</style>